/*
 * @Author: your name
 * @Date: 2021-11-11 18:01:22
 * @LastEditTime: 2021-11-15 15:29:04
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \flutter_redux\redux_example\lib\store\actions.dart
 */
// 1.删除无用的文件，删除注释。
enum CountActions {
  increment,
  decrement,
}

// TodoAddAction, TodoRemoveAction, TodoClearnAction
class TodoAddAction {
  // Item -> int id, String text
  static int _id = 0;
  final String? text;

  TodoAddAction(this.text) {
    _id++;
  }

  int get id => _id;
}

class TodoRemoveAction {
  final int id;

  TodoRemoveAction(this.id);
}

class TodoClearAction {}
